package com.webkaifa.socket;

import java.nio.ByteBuffer;

public abstract class BasePacket {
	public static int headLength(){
		return 4;
	}
	public static int packetLength(ByteBuffer buffer)
	{
		return 16;
	}
	public abstract int packetLength();
	public static BasePacket creat(ByteBuffer buffer)
	{
		return null;
	}
	public abstract  int packetRead(ByteBuffer buffer);
	public abstract  int packetWrite(ByteBuffer buffer);	
}
